package hms.rewards;

/*This class controls all the options available for the 
 * rewards account management that do not pertain to the GUI
 * 
 * @author Edgar Onukwugha*/

public class MemberAccountControl {
	
	//checks current subscription status
	public Boolean subscriptionStatus(){
		Boolean subscriptionActive = true;
		Boolean isTrial = false;
		Boolean isMonthly = false;
		Boolean isAnnual = false;
		
		//if subscription has expired, then no subscription is currently active
		if(isSubscriptionOver() == false){
			subscriptionActive = false;
		}
		
		//if trial membership is active, then other 
		//  subscriptions are inactive
		if(isTrial ==  true){
			isMonthly = false;
			isAnnual = false;
			subscriptionActive = true;
		}
		
		//if monthly membership is active
		if(isMonthly == true){
			isTrial = false;
			isAnnual = false;
			subscriptionActive = true;
		}
		
		//if annual membership is active
		if(isAnnual == true){
			isTrial = false;
			isMonthly = false;
			subscriptionActive = true;
		}
		
		return subscriptionActive;
	}
	
	//checks whether current membership has passed
	public Boolean isSubscriptionOver(){
		Boolean subscriptionOver = false;
		//checks if ending date is passed then false
		return subscriptionOver;
	}
	
	//checks if trial membership has passed 
	public Boolean hadTrialMembership(Boolean subStatus){
		Boolean trialMember = false;
		if(subStatus == false){
			trialMember = false;
		}
		return trialMember;
	}
}
